package jvs.peer.xmpp;

import jvs.peer.sec.User;
import jvs.sh.IShell;

public abstract class Shell implements IShell {

	protected User user;
	private long lastAccess;
	private boolean connected;

	public Shell() {
		super();
	}

	public long getLastAccess() {
		return lastAccess;
	}

	public void connect(User user) {
		this.user = user;
		this.connected = true;
	}

	public boolean isConnected() {
		return connected;
	}

	public void setLastAccess(long lastAccess) {
		this.lastAccess = lastAccess;
	}

	public String id() {
		return user.getId();
	}

}